
<%@page import="java.util.*, pruebas.modelo.Usuario" %>
<html>
    <head>
        <title>Usuario Buscar</title>
    </head>
    <body>
        <form name="f1" action="UsuarioBuscarServlet" method="post">
            Nombre: <input type="text" name="nombre"/>
            <input type="submit" name="enviar" value="Buscar"/>
        </form>
        <table border="1">
            <tr>
                <th>Id</th><th>Nombre</th><th>Paterno</th><th>Email</th>
            </tr>
            <%
                        Collection<Usuario> c = (ArrayList<Usuario>) request.getAttribute("USUARIOS");
                        if (c != null) {
                            for (Usuario vo : c) {
                                out.println("<tr><td>" + vo.getIdUsuario() + "</td>");
                                //out.println("<td>" + vo.getNombres() + "</td>");
                                
                                out.println( "<td><input type=text' name='test1' value='" + vo.getNombres() + "'/></td>" );
                                out.println( "<td><input type=text' name='test1' value='" + vo.getPaterno() + "'/></td>" );
                                out.println( "<td><input type=text' name='test1' value='" + vo.getCorreo() + "'/></td>" );
                                //out.println("<td>" + vo.getPaterno() + "</td>");
                                //out.println("<td>" + vo.getCorreo() + "</td></tr>");
                                
                       
            %>
            <%--<input type="text" name="test2" value=" <%  vo.getCorreo();  %> " />--%>

            <td><input type="text" />

            
            <%
                out.println(" </tr>"); %>
           
        </table>

<%--hasta aca lo de la otra pagina--%>



<h4>Listar alumno:</h4>
<table align="center" width="90%" border="1">
    <tr>
        <td width="9%">id usuario</td>
        <td width="25%"><label>
                <% out.println( "<input type=text'  value='" + vo.getNombres() + "'/>" );%>
         <%  }} %>
                <!--<input type="text" name="textfield3" id="textfield3" /> -->
                <input type="submit" name="button9" id="button9" value="Buscar" />
            </label></td>
        <td width="14%">categoria</td>
        <td width="20%"><label>
                <select name="select3" id="select3">
                    <option value="1">Administrador</option>
                    <option value="2">Usuario</option>
                </select>
            </label></td>

            <td width="9%">fecha inicio</td>
        <td width="23%">xx/xx/xxx</td>
    </tr>
    <tr>
        <td>alias</td>
        <td><input type="text" name="textfield4" id="textfield4" />
            <input type="submit" name="button10" id="button10" value="Buscar" /></td>
        <td>nombres</td>
        <td><input type="text" name="textfield5" id="textfield5" /></td>
        <td>carrera</td>
        <td><label>
                <select name="select" id="select">
                    <option value="1">REDES</option>
                    <option value="2">ELECTRONICA</option>
                    <option value="3">QUIMICA</option>
                    <option value="4">ELECTROTECNIA</option>
                    <option value="5">PLANTA</option>
                    <option value="6">PESADA</option>
                </select>
            </label></td>
    </tr>
    <tr>
        <td>estado</td>
        <td><select name="select4" id="select4">
                <option value="1">Habilitado</option>
                <option value="2">Deshabilitado</option>
                <option value="3">Desactualizado</option>
                <option value="4">Por confirmar</option>
            </select> </td>
        <td>apellido materno
            apellido paterno</td>
        <td>
            <input type="text" name="textfield6" id="textfield6" />


            <input type="text" name="textfield8" id="textfield8" />
        </td>
        <td>ciclo</td>
        <td><select name="select2" id="select2">
                <option value="1">primero</option>
                <option value="2">segundo</option>
                <option value="3">tercero</option>
                <option value="4">cuarto</option>
                <option value="5">quinto</option>
                <option value="6">sexto</option>
            </select></td>
    </tr>
    <tr>
        <td colspan="6"><label>
                <input type="submit" name="button11" id="button11" value="Listar usuarios por criterios" />
            </label>      <label>
                <input type="submit" name="button15" id="button15" value="Listar todos los usuarios" />
            </label>    <label>
                <input type="submit" name="button8" id="button8" onclick="confirmar()" value="Actualizar cambios" />
                <input type="submit" name="button7" id="button7" value="Deshacer modificaciones" />
                <input type="submit" name="button16" id="button16" onclick="confirmar()" value="Agregar usuario" />
                <input type="submit" name="button17" id="button17" onclick="confirmar()" value="Eliminar usuario(s)" />
            </label></td>
    </tr>
</table>

<%--
  <%  }}%>
--%>
<table  align="center" width="92%" border="0">
    <tr>
        <td colspan="2"><div align="center">======Ultimas actualizaciones:======</div></td>
        <td colspan="2"><div align="center">======Los mejor puntuados:======</div></td>
        <td colspan="5"><div align="center">======Por carrera:======</div></td>
    </tr>
    <tr>
        <td width="29%" height="25" bgcolor="#CCCCCC"><ul class="Estilo17">
                <li>Examen final de aplicaciones (resuelto)</li>
            </ul></td>
        <td width="8%" bgcolor="#CCCCCC">5 min
            <input type="submit" name="redes7" id="redes7" value="&gt;&gt;&gt;&gt;" /></td>
        <td width="30%" bgcolor="#CCCCCC"><ul class="Estilo17">
                <li>Las 10 mejores paginas de tutoriales</li>
            </ul></td>
        <td width="7%" bgcolor="#CCCCCC"><span class="Estilo17">56 puntos</span></td>
        <td width="12%" bgcolor="#CCCCCC"><ul>
                <li>Redes</li>
            </ul>      </td>
        <td width="7%" bgcolor="#CCCCCC"><select name="redes_list2" size="1" id="redes_list2">
                <option value="1">primero</option>
                <option value="2">segundo</option>
                <option value="3">tercero</option>
                <option value="4">cuarto</option>
                <option value="5">quinto</option>
                <option value="6">sexto</option>
            </select></td>
        <td width="7%" bgcolor="#CCCCCC"><form id="form1" name="form1" method="post" action="">
                <label>
                    <input type="submit" name="redes" id="redes" value=">>>>" />
                </label>
            </form>    </td>
        <td width="7%" bgcolor="#CCCCCC"><label>
                <input type="submit" name="button" onClick="confirmar()" id="button" value="quitar" />
            </label></td>
        <td width="7%" bgcolor="#CCCCCC"><label>
                <input type="text" name="textfield" id="textfield" />
                <input type="button" onClick="confirmar()" value="modificar puntaje" />
            </label></td>
    </tr>
    <tr>
        <td><ul class="Estilo17">
                <li>Lab 13 Aplicaciones (resuelto)</li>
            </ul></td>
        <td>20 min
            <input type="submit" name="redes8" id="redes8" value="&gt;&gt;&gt;&gt;" /></td>
        <td><ul class="Estilo17">
                <li>Laboratorios resueltos 1 y segundo</li>
            </ul></td>
        <td><span class="Estilo17">38 puntos</span></td>
        <td><ul>
                <li>Quimica</li>
            </ul>      </td>
        <td><select name="redes_list" size="1" id="redes_list">
                <option value="1">primero</option>
                <option value="2">segundo</option>
                <option value="3">tercero</option>
                <option value="4">cuarto</option>
                <option value="5">quinto</option>
                <option value="6">sexto</option>
            </select></td>
        <td><input type="submit" name="redes2" id="redes2" value="&gt;&gt;&gt;&gt;" /></td>
        <td><input type="submit" name="button2" onclick="confirmar()" id="button2" value="quitar" /></td>
        <td width="7%" bgcolor="#CCCCCC"><label>
                <input type="text" name="textfield" id="textfield" />
                <input type="button" onclick="confirmar()" value="modificar puntaje" />
            </label></td>
    </tr>
    <tr bgcolor="#CCCCCC">
        <td><ul class="Estilo17">
                <li>Mas enlaces imperdibles!!</li>
            </ul></td>
        <td>1 hora
            <input type="submit" name="redes9" id="redes9" value="&gt;&gt;&gt;&gt;" /></td>
        <td><ul class="Estilo17">
                <li>Laboratorios resueltos 1-8 Bases de datos</li>
            </ul></td>
        <td><span class="Estilo17">26 puntos</span></td>
        <td><ul>
                <li>Pesada</li>
            </ul>      </td>
        <td><select name="redes_list3" size="1" id="redes_list3">
                <option value="1">primero</option>
                <option value="2">segundo</option>
                <option value="3">tercero</option>
                <option value="4">cuarto</option>
                <option value="5">quinto</option>
                <option value="6">sexto</option>
            </select></td>
        <td><input type="submit" name="redes3" id="redes3" value="&gt;&gt;&gt;&gt;" /></td>
        <td><input type="submit" name="button3" onclick="confirmar()" id="button3" value="quitar" /></td>
        <td width="7%"><label>
                <input type="text" name="textfield" id="textfield" />
                <input type="button" onclick="confirmar()" value="modificar puntaje" />
            </label></td>
    </tr>
    <tr>
        <td><ul class="Estilo17">
                <li>Laboratorios 1-8 4to redes-redes</li>
            </ul></td>
        <td><span class="Estilo17">2 horas
                <input type="submit" name="redes10" id="redes10" value="&gt;&gt;&gt;&gt;" />
            </span></td>
        <td><ul class="Estilo17">
                <li>Practicas calificadas comunicaciones 1</li>
            </ul></td>
        <td><span class="Estilo17">20 puntos</span></td>
        <td><ul>
                <li>Planta</li>
            </ul>      </td>
        <td><select name="redes_list4" size="1" id="redes_list4">
                <option value="1">primero</option>
                <option value="2">segundo</option>
                <option value="3">tercero</option>
                <option value="4">cuarto</option>
                <option value="5">quinto</option>
                <option value="6">sexto</option>
            </select></td>
        <td><input type="submit" name="redes4" id="redes4" value="&gt;&gt;&gt;&gt;" /></td>
        <td><input type="submit" name="button4" onclick="confirmar()" id="button4" value="quitar" /></td>
        <td width="7%" bgcolor="#CCCCCC"><label>
                <input type="text" name="textfield" id="textfield" />
                <input type="button" onclick="confirmar()" value="modificar puntaje" />
            </label></td>
    </tr>
    <tr bgcolor="#CCCCCC">
        <td><ul>
                <li><span class="Estilo17"></span>Tutorial BackTrack 4</li>
            </ul></td>
        <td>ayer
            <input type="submit" name="redes11" id="redes11" value="&gt;&gt;&gt;&gt;" /></td>
        <td><ul>
                <li><span class="Estilo17"></span>Parcial redes 2008-2</li>
            </ul></td>
        <td><span class="Estilo17">19 puntos</span></td>
        <td><ul class="Estilo17">
                <li>Electronica</li>
            </ul></td>
        <td><span class="Estilo17">
                <select name="redes_list5" size="1" id="redes_list5">
                    <option value="1">primero</option>
                    <option value="2">segundo</option>
                    <option value="3">tercero</option>
                    <option value="4">cuarto</option>
                    <option value="5">quinto</option>
                    <option value="6">sexto</option>
                </select>
            </span></td>
        <td><input type="submit" name="redes5" id="redes5" value="&gt;&gt;&gt;&gt;" /></td>
        <td><input type="submit" name="button5" onclick="confirmar()" id="button5" value="quitar" /></td>
        <td width="7%"><label>
                <input type="text" name="textfield" id="textfield" />
                <input type="button" onclick="confirmar()" value="modificar puntaje" />
            </label></td>
    </tr>

    <tr>
        <td><ul>
                <li>Tutorial Configuracion Samba</li>
            </ul></td>
        <td>2 dias
            <input type="submit" name="redes12" id="redes12" value="&gt;&gt;&gt;&gt;" /></td>
        <td><ul>
                <li>Final redes 2008-2</li>
            </ul></td>
        <td><span class="Estilo17">19 puntos
            </span></td>
        <td><ul class="Estilo17">
                <li>Electrotecnia</li>
            </ul></td>
        <td><select name="redes_list6" size="1" id="redes_list6">
                <option value="1">primero</option>
                <option value="2">segundo</option>
                <option value="3">tercero</option>
                <option value="4">cuarto</option>
                <option value="5">quinto</option>
                <option value="6">sexto</option>
            </select></td>
        <td><input type="submit" name="redes6" id="redes6" value="&gt;&gt;&gt;&gt;" /></td>
        <td><input type="submit" name="button6" onclick="confirmar()" id="button6" value="quitar" /></td>
        <td width="7%" bgcolor="#CCCCCC"><label>
                <input type="text" name="textfield" id="textfield" />
                <input type="button" onclick="confirmar()" value="modificar puntaje" />
            </label></td>
    </tr>
    <tr>
        <td><input type="submit" name="button12" id="button12" value="Listar todos" /></td>
        <td><label></label></td>
        <td><input type="submit" name="button13" id="button13" value="Listar todos" /></td>
        <td>&nbsp;</td>
        <td><input type="submit" name="button14" id="button14" value="Listar todos" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td bgcolor="#CCCCCC">&nbsp;</td>
    </tr>
</table>







<p>
    <!-- area modificable  -->
</p>
<hr />
<p>


    <!-- aca todo lo que va al final -->
</p>
<table align="center" width="60%" border="0">
    <tr>
        <td colspan="6"><div align="center"><strong><img src="../imagenes/lupa.gif" alt="*" width="23" height="21" />Buscador de archivos en la web</strong></div></td>
    </tr>
    <tr>
        <td bgcolor="#CCCCCC"><div align="center">Carrera:</div></td>
        <td bgcolor="#CCCCCC"><div align="center">Ciclo:</div></td>
        <td bgcolor="#CCCCCC"><div align="center">Tipo:</div></td>
        <td bgcolor="#CCCCCC"><div align="center">Tema:</div></td>
        <td bgcolor="#CCCCCC">Usuario:</td>
        <td bgcolor="#CCCCCC">Id archivo:</td>
    </tr>
    <tr>
        <td><div align="center">
                <select name="redes_list8" size="1" id="redes_list8">
                    <option value="1">REDES</option>
                    <option value="2">ELECTRONICA</option>
                    <option value="3">QUIMICA</option>
                    <option value="4">ELECTROTECNIA</option>
                    <option value="5">PLANTA</option>
                    <option value="6">PESADA</option>
                </select>
            </div></td>
        <td><div align="center">
                <select name="redes_list7" size="1" id="redes_list7">
                    <option value="1">primero</option>
                    <option value="2">segundo</option>
                    <option value="3">tercero</option>
                    <option value="4">cuarto</option>
                    <option value="5">quinto</option>
                    <option value="6">sexto</option>
                </select>
            </div></td>
        <td><div align="center">
                <select name="clasificacion" size="1" id="clasificacion">
                    <option value="1">Tutorial</option>
                    <option value="2">Examen</option>
                    <option value="3">Practica</option>
                    <option value="4">Laboratorio</option>
                    <option value="5">Trabajo</option>
                    <option value="6">Otro</option>
                </select>
            </div></td>
        <td><label>

                <input type="text" name="tema" id="tema" />

            </label></td>
        <td><label>
                <input type="text" name="textfield2" id="textfield2" />
            </label></td>
        <td><input type="text" name="textfield7" id="textfield7" /></td>
    </tr>
    <tr>
        <td colspan="6" bgcolor="#CCCCCC"><label>
                <div align="center">
                    <p>
                        <label>
                            <input type="submit" name="button18" id="button18" value="Listar por criterios" />
                        </label>
                        <label>
                            <input type="submit" name="button18" id="button19" value="Listar todos" />
                        </label>
                        <label>
                            <input type="submit" name="button18" id="button20" onclick="confirmar()" value="Actualizar cambios" />
                            <input type="submit" name="button18" id="button21" value="Deshacer modificaciones" />
                            <input type="submit" name="button18" id="button22" onclick="confirmar()" value="Agregar archivo" />
                            <input type="submit" name="button19" id="button23" onclick="confirmar()" value="Eliminar archivo(s)" />
                        </label>
                    </p>
                </div>
            </label></td>
    </tr>
</table>


<%--hasta aca lo de la otra pagina--%>

    </body>

</html>

